package com.mindao.app.es.model;

import javax.persistence.FetchType;
import javax.persistence.JoinColumn;
import javax.persistence.ManyToOne;

import com.mindao.app.common.spring.model.BaseModel;

/**
/* 版权所有： 广州敏道科技有限公司
/*
/* 功能描述:战队和队员关系表，有状态标识
/*
/* 创 建 人：李国才
/* 创建时间：2016年7月15日 下午4:32:44 	
 **/
public class EsRelTeamUser  extends BaseModel{
	private EsTeam team;
	private EsUser user;
	private Integer leaderFlag;//是否是队长
	private Integer state;//0申请报名，1报名成功，-1被踢出战队
	@ManyToOne 
	@JoinColumn(name = "team_id", nullable = true)	
	
	public EsTeam getTeam() {
		return team;
	}
	public void setTeam(EsTeam team) {
		this.team = team;
	}
	@ManyToOne 
	@JoinColumn(name = "user_id", nullable = true)	
	public EsUser getUser() {
		return user;
	}

	public void setUser(EsUser user) {
		this.user = user;
	}
	public Integer getState() {
		return state;
	}
	public void setState(Integer state) {
		this.state = state;
	}
	public Integer getLeaderFlag() {
		return leaderFlag;
	}
	public void setLeaderFlag(Integer leaderFlag) {
		this.leaderFlag = leaderFlag;
	}
	
	
} 
